arm/mem_access: Introduce GENMASK_ULL bit operation
authorSergej Proskurin <proskurin@sec.in.tum.de>
Wed, 16 Aug 2017 13:17:38 +0000 (15:17 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 18 Aug 2017 17:27:33 +0000 (10:27 -0700)
commit83be50576e8131642008575f65ddd9d5ede60b11
treeb0b80fce7d59a786f64e8cc1aa08afb893377d83
parent2af2c66f39c88cf42e8ef27e6badf8baf35aee4c
arm/mem_access: Introduce GENMASK_ULL bit operation

The current implementation of GENMASK is capable of creating bitmasks of
32-bit values on AArch32 and 64-bit values on AArch64. As we need to
create masks for 64-bit values on AArch32 as well, in this commit we
introduce the GENMASK_ULL bit operation. Please note that the
GENMASK_ULL implementation has been lifted from the linux kernel source
code.

Signed-off-by: Sergej Proskurin <proskurin@sec.in.tum.de>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/config.h
xen/include/asm-x86/config.h
xen/include/xen/bitops.h